import request from '@/utils/request'
//初始查询
export const ListAllIndex = (search) => 
    request({
        url: '/indexManage',
        method: 'get',
        params: {
            offset: search.offset,
            limit: search.limit,
            indexName: search.indexName
        }
    })
    //查询需要修改的数据
    export const ListIndexById = (id) => 
    request({
        url: '/indexManage/'+ id,
        method: 'get',
    })
    //添加
    export const addIndex= (indexManage) => 
    request({
        url: '/indexManage',
        method: 'post',
        data: indexManage
    })   
    //修改
    export const upIndex= (indexManage) => 
    request({
        url: '/indexManage' ,
        method: 'put',
        data: indexManage
    })  